<extend file='resource/admin/base'/>
<block name="content">
	<!-- TAB NAVIGATION -->
	<ul class="nav nav-tabs" role="tablist">
		<li class="active"><a href="{{u(index)}}" >栏目管理</a></li>
		<li><a href="{{u(post)}}" >栏目添加</a></li>

	</ul>
	<!-- TAB CONTENT -->
	 <table class="table table-hover">
	 	<thead>
	 		<tr>
	 			<th>编号</th>
				<th>栏目名称</th>
				<th>操作</th>
	 		</tr>
	 	</thead>
   
	 	<tbody>
        <foreach from="$cateData" value="$d" >
	 		<tr>
	 			<td>{{$d['cate_id']}}</td>
	 			<td>{{$d['_cate_name']}}</td>
	 			<td>
					<div class="btn-group btn-group-sm">
						<a href="{{u(post,['cate_id'=>$d['cate_id']])}}" type="button" class="btn btn-info">编辑</a>
						<a href="{{u(del,['cate_id'=>$d['cate_id']])}}" type="button" class="btn btn-danger">删除</a>
					</div>
				</td>
	 		</tr>
         </foreach>
	 	</tbody>
	 </table>


</block>